from django.contrib import admin
from django.urls import path
from django.urls import include
from accounts import views
urlpatterns = [
    path('login/', views.login_view, name='login'),
    path('register/', views.register_view, name='register'),
    path('logout/', views.logout_view, name='logout'),
    path('',views.home,name='home'),
    # 建立 Django 会话（前端验证成功后调用）
    path('api/session-login', views.session_login, name='session_login'),
]
